package com.zxn.school;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/3/22 14:04
 * @description
 */
public class Teacher {
    private int tid;
    private String tname;//名字
    private String subject;//课程

    public Teacher(int tid, String tname, String subject) {
        this.tid = tid;
        this.tname = tname;
        this.subject = subject;
    }

    public Teacher() {
    }

    public int getTid() {
        return tid;
    }

    public void setTid(int tid) {
        this.tid = tid;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "tname='" + tname + '\'' +
                ", subject='" + subject + '\'' +
                '}';
    }
}
